<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery.form/4.3.0/jquery.form.js"></script>
    <style>
        .con {
            border: 1px solid green;
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -225px 0 0 -400px;
        }
    </style>

</head>

<body>
<div id="container" style=" width: 800px;height: 450px;">
    <form id="form1" action="/web_stu_info/main/add.do" method="post">
        <table border="0px" cellspacing="10" class="con">
            <tr>
                <th>添加</th>
            </tr>
            <tr>
                <td>
                    <input type="text" placeholder="学号" name="stuId">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="text" placeholder="学生姓名" name="name">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="radio" name="sex" value="男"/>男
                    <input type="radio" name="sex" value="女"/>女
                </td>
            </tr>
            <tr>
                <td>
                    <input type="date" placeholder="生日" name="birthday">
                </td>
            </tr>
            <tr></tr>
            <tr>
                <td>
                    <input type="button" value="清空" @click.prevent="clearItem()">
                </td>
                <td>
                    <input type="submit" value="添加">
                </td>
            </tr>
        </table>

    </form>

</div>
<script>
    // $(function () {
    //     $("#form1").ajaxForm(function (response) {
    //         console.log(response.data);
    //         var data = response.data;
    //         if (data.flag > 0)
    //             if (confirm(data.message)) {
    //                 history.go(-2);
    //                 location.reload();
    //             } else {
    //                 confirm(data.message);
    //             }
    //     });
    // });
</script>

</body>


</html>